package com.edais.service.imp;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.edais.dao.SystemSettingDao;
import com.edais.domain.Share;
import com.edais.service.SystemSettingService;
@Service

public class SystemSettingServiceImpl implements SystemSettingService {

	private static final Log logger = LogFactory.getLog(SystemSettingServiceImpl.class);
	@Autowired
	private SystemSettingDao systemSettingDao ;
	
	/**
	 * 根据system_setting表的name获取value
	 */
	@Override
	public Share getSystemSettingByName() throws Exception {
		logger.info("=====================SystemSettingServiceImpl>>getSystemSettingByName");
		return systemSettingDao.getSystemSetting();
	}

	/**
	 * 根据name获取value
	 */
	@Override
	public String getSystemSettingValueByName(String name) throws Exception {
		return systemSettingDao.getSystemSettingValueByName(name);
	}
	
	
}
